{extend name="wmcommon/menu" /}
{block name="selfcss"}<link rel="stylesheet" href="__STATIC__/wm_index/css/wm/news.css?201908">{/block}

{block name='title'}最新研学旅行资讯_研学旅行最新新闻{/block}
{block name='keywords'}最新研学旅行资讯,研学旅行最新新闻{/block}
{block name='description'}未名研学资讯信息频道，提供研学旅行最新的资讯信息，政策解读，研学动态，行业新闻，了解更多研学行业信息，尽在未名研学网。{/block}

{block name='maincontent'}
<!-- 热点关注 -->
<div id="silvertrack_box">
</div>
<div id="layout_box">
    <!-- 左栏 -->
    <div class="layout_left">
        <div class="module">
            <!-- 轮播图 -->
            <div class="left">
                <div class="swiper-container .swiper" id="swiper">
                    <div class="swiper-wrapper">
                        {notempty name="block9['content']['lists']"}
                        {foreach $block9['content']['lists'] as $v}
                        <div class="swiper-slide">
                            <a class="image" href="{$v.link ?: 'javascript:;'}">
                                <img src="{$v.thumb ?: ''}" alt="{$v.title ?: ''}">
                                <p class="txt a_row">{$v.title ?: ''}</p>
                            </a>
                        </div>
                        {/foreach}
                        {/notempty}
                    </div>
                </div>
            </div>
            <!-- 列表 -->
            <div class="right">
                <h2 class="a_row">
                    <?php if(!empty($aryNo1)){?>
                    <a href="<?php echo url("/newsdetails",array("id"=>$aryNo1["id"]))?>"><?php echo $aryNo1['title'];?></a>
                    <?php }?>

                </h2>
                <div class="list">
                    <?php if(!empty($aryNo2)){?>
                        <?php foreach($aryNo2 as $v){?>
                            <a class="cell a_row" href="<?php echo url("/newsdetails",array("id"=>$v["id"]))?>">[研学新闻]&nbsp;<?php echo $v['title'];?></a>
                        <?php }?>

                    <?php }?>
                </div>
            </div>
        </div>
        <!-- 分类列表 -->
        <div class="tab_box" id="tab_box">
            <ul class="tab">
                <?php if(!empty($catelist)){?>
                    <?php foreach($catelist as $v){?>
                <li class="tab_item <?php if($v['id'] == $curid){?>on<?php }?>">
                    <h2><a href='<?php echo url("/item/".$v["pid"]."-".$v["id"])?>'><?php echo $v['name'];?></a></h2>
                </li>
                    <?php }}?>
            </ul>
            <div class="list">
                <?php if(!empty($aryNewsAll)){?>
                <?php foreach($aryNewsAll as $v){?>
                    <a class="cell" href="<?php echo url("/newsdetails",array("id"=>$v["id"]))?>">
                    <?php if(!empty($v['thumb'])){?>
                    <p class="image">
                        <img src="<?php echo $v['thumb'];?>" alt="<?php echo $v['title'];?>">
                    </p>
                    <?php }?>
                        <div class="info">
                            <h3 class="title a_row"><?php echo $v['title'];?></h3>
                            <p class="txt two_row"><?php echo $v['desc'];?></p>
                            <div class="flex">
                                <span class="time"><?php echo date("Y-m-d",strtotime($v['create_at']));?></span>
                                <div class="right">
                                    <p>
                                        <img src="__STATIC__/wm_index/images/wm/icon_small_icons1.png" >
                                        <span><?php echo $v['viewnum'];?></span>
                                    </p>
                                </div>
                            </div>
                        </div>
                    </a>

                <?php }?>
                <?php }?>


            </div>
        </div>
        <!--  -->
        <div id="pages">

        </div>
    </div>
    <!-- 右栏 -->
    <div class="layout_right">
        <div class="tel_box">
            <p class="txt">全国研学教育报名咨询热线</p>
            <p class="tel">400-008-1926</p>
        </div>
        <!-- mark -->
        <div class="marks">
            <a class="mark" href="http://www.wmyanxue.com/products/service.html">
                <p class="image"><img src="__STATIC__/wm_index/images/wm/bg_mark1.jpg" alt="研学实践教育解决方案"></p>
                <p class="txt a_row">研学实践教育解决方案</p>
            </a>
            <a class="mark" href="http://www.wmyanxue.com/course/p1/">
                <p class="image"><img src="__STATIC__/wm_index/images/wm/bg_mark2.jpg" alt="研学课程"></p>
                <p class="txt a_row">研学课程</p>
            </a>
            <a class="mark" href="http://www.wmyanxue.com/products/service.html">
                <p class="image"><img src="__STATIC__/wm_index/images/wm/bg_mark3.jpg" alt="营地开发"></p>
                <p class="txt a_row">营地开发</p>
            </a>
            <a class="mark" href="http://www.wmyanxue.com/products/college.html">
                <p class="image"><img src="__STATIC__/wm_index/images/wm/bg_mark4.jpg" alt="研学实践导师培训"></p>
                <p class="txt a_row">导师培训</p>
            </a>
            <a class="mark" href="http://www.wmyanxue.com/yixiang.html">
                <p class="image"><img src="__STATIC__/wm_index/images/wm/bg_mark5.jpg" alt="提交意向"></p>
                <p class="txt a_row">提交意向</p>
            </a>
        </div>

        <div class="hot_box">
            <div class="title">
                <p class="left">
                    <img src="__STATIC__/wm_index/images/wm/icon_hot.png" alt="">
                    <span>热门课程</span>
                </p>
                <a class="more" href="<?php echo url("/item/12")?>">更多&#62;&#62;</a>
            </div>
            <div class="list">
                <?php if(!empty($aryRecommend)){foreach($aryRecommend as $lesson){?>
                <a class="cell" href="<?php echo url("/lesson",array("id"=>$lesson["id"]))?>">
                <p class="image"><img src="<?php echo $lesson["cover"]?>" alt="<?php echo $lesson["title"]?>"></p>
                <div class="info">
                    <p class="name two_row"><?php echo $lesson["title"]?></p>
                    <div class="flex">
                        <p class="marks_box">
                            <?php
                            if(!empty($lesson['cover_desc'])){
                            $aryData = json_decode($lesson['cover_desc'],true);
                        ?>

                            <span class="mark">{$aryData[0] ?: ''}</span>
                            <?php }?>

                        </p>
                        <!--<span class="time"><?php //echo $lesson["cover_desc"]?></span>-->
                    </div>
                </div>
                </a>
                <?php }}?>

            </div>
        </div>
    </div>
</div>
<script src="__STATIC__/index/js/jquery.page.js"></script>
<script src="__STATIC__/plugs/layui/layui.all.js"></script>
<script>
    $(function () {
//获取url参数
        function getQueryValue(key) {
            var match = location.search.match(new RegExp(key + '=([^&]*)'));
            return match && match[1] || '';
        }

        // 当前页码
        var page = getQueryValue("page") || 1;
        page = parseInt(page);
        // 总页数
        var pageCount = {:ceil($count / 5)};
        if (pageCount == 1) {
            $("#pages").hide();
        }
        $("#pages").createPage({
            current: page,
            pageCount: pageCount,
            backFn: function (p) {
                //p是当前页码
                var pid = getQueryValue('pid');
                var keywords = getQueryValue('keywords');
                if (pid == '' && keywords == '') {
                    window.location.href = "?page=" + p;
                } else {
                    window.location.href += "&page=" + p;
                }
            }
        });
    });
</script>
{/block}

{block name='script'}
<link rel="stylesheet" type="text/css" href="__STATIC__/index/css/reset.css" />
<link rel="stylesheet" type="text/css" href="__STATIC__/index/css/teacher.css" />
{/block}